﻿using AFanDa.BLL.BLLService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace AFanDa.Admin.Controllers
{
    /// <summary>
    /// 
    /// </summary>
    public class HomeController : Controller
    {
        RightService _rightService = new RightService();
        public HomeController()
        {
            _rightService = new RightService();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            return View();
        }

        /// <summary>
        /// 获取菜单 （彭思期）
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public ActionResult getMenu()
        {
            var result = _rightService.getMenu();

            return Json(result, JsonRequestBehavior.AllowGet);

        }


    }
}